projects
/
babl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
747caef
)
babl: remove outdated comment
author
Øyvind Kolås
<pippin@gimp.org>
Wed, 20 Jun 2018 10:55:55 +0000
(12:55 +0200)
committer
Øyvind Kolås
<pippin@gimp.org>
Wed, 20 Jun 2018 10:56:02 +0000
(12:56 +0200)
babl/base/model-gray.c
patch
|
blob
|
history
diff --git
a/babl/base/model-gray.c
b/babl/base/model-gray.c
index 5449a4f33ebf7aacfad85af18ca4bad9c3e74ff6..5db405bde1516c7f1b9ad8554e0ba2ae2ab357e9 100644
(file)
--- a/
babl/base/model-gray.c
+++ b/
babl/base/model-gray.c
@@
-201,7
+201,7
@@
rgb_to_gray_nonlinear (Babl *conversion,
else
alpha = 1.0;
- luminance = red * RGB_LUMINANCE_RED +
// XXX: should be taken from BablSpace
+ luminance = red * RGB_LUMINANCE_RED +
green * RGB_LUMINANCE_GREEN +
blue * RGB_LUMINANCE_BLUE;
*(double *) dst[0] = babl_trc_from_linear (trc, luminance);